import request from '@/utils/request'

// 查询交易基础网格列表
export function listTradeBaseGrid(query) {
  return request({
    url: '/trade/tradeBaseGrid/list',
    method: 'get',
    params: query
  })
}

// 查询交易基础网格详细
export function getTradeBaseGrid(id) {
  return request({
    url: '/trade/tradeBaseGrid/' + id,
    method: 'get'
  })
}

// 新增交易基础网格
export function addTradeBaseGrid(data) {
  return request({
    url: '/trade/tradeBaseGrid',
    method: 'post',
    data: data
  })
}

// 修改交易基础网格
export function updateTradeBaseGrid(data) {
  return request({
    url: '/trade/tradeBaseGrid',
    method: 'put',
    data: data
  })
}

// 删除交易基础网格
export function delTradeBaseGrid(id) {
  return request({
    url: '/trade/tradeBaseGrid/' + id,
    method: 'delete'
  })
}

// 生成表格
export function generateGrid(gridForm) {
  return request({
    url: '/trade/tradeBaseGrid/generate',
    method: 'post',
    data: gridForm
  })
}
